#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
    int n, k, x, y;
    srand(time(0));
    cout<<"Enter number of shots - ";
    cin>>n;
    if (n<0) cout<<"Wrong number!!";
k=0;
for (int i=0; i<n;i++)
{
    x=rand()%201-100;
    y=rand()%201-100;
    if ((x<=5)&&(y<=-7) && (y<=5)&&(y>=-8))
        k=k+1;
}
cout<<"Shots - "<<n<<endl;
cout<<"Hits - "<<k;
    return 0;
}
